package com.hql.handicraft_display_system.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * @author hql
 * @version 1.0
 * @date 2022/01/07 22:28
 */
@Controller
public class IndexController {

    @GetMapping("/index")
    public String toIndex() {
        return "index";
    }

    @GetMapping("/toArtists")
    public String toArtists() {
        return "artists";
    }

    @GetMapping("/toExhibitions")
    public String toExhibitions() {
        return "exhibitions";
    }

    @GetMapping("/toCollections")
    public String toCollections() {
        return "collections";
    }

    @GetMapping("/toNews")
    public String toNews() {
        return "news";
    }

    @GetMapping("/toShop")
    public String toShop() {
        return "shop";
    }

    @GetMapping("/toAbout")
    public String toAbout() {
        return "about";
    }
}
